<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		ScriptPlanet.eu															/
/	Site:			http://www.scriptplanet.eu												/
/	Email:			support@scriptplanet.eu													/
/	Support:		http://www.scriptplanet.eu/support										/
/	Copyright:		2011 (c) ScriptPlanet.eu												/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0001																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla Security
defined('_JEXEC') or die;

jimport('joomla.application.component.view');
jimport( 'joomla.document.json.json' );
 
/**
 * HTML View class for the HelloWorld Component
 */
class JoosamViewModules extends Jview{
	
	function display($tpl = null){

		// For all modules
		$module = new jsamModules();
		$data = new jsamSongdata();
		$getevent = new jsamEvents();
		global $samerror;

		$picture = $data->getInfo('picture', $live['songID']);
		$tzone = $module->getInfo('tzone');
		$request = $module->getInfo('reqtop');
		$history = $module->getInfo('history');
		$queue = $module->getInfo('queue');
		$event = $getevent->eventMod();


		if (count($errors = $this->get('Errors'))) {
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}

		// Assign data to the view
		$this->picture = $picture;
		$this->tzone = $tzone;
		$this->request = $request;
		$this->history = $history;
		$this->queue = $queue;
		$this->event = $event;
		$this->samerr = $samerror;

		// Display the view
		parent::display($tpl);
	}
}